package com.bonana.core.dao.user;

import com.bonana.core.entity.BackendUser;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2016/5/17.
 */
public interface BackendUserDao {
    BackendUser queryByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
    int updateLastLogin(@Param("username") String username, @Param("lastLoginIp") int lastLoginIp, @Param("lastLoginTime") Timestamp lastLoginTime);
}
